<template>
	<view>
		
	</view>
</template>

<script>
	import { appInit } from '@/common/api.js'
	
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			console.log('onLoad', 'home onLoad')
			if(this.$store.state.$token){
				uni.switchTab({
					url: '/pages/home/index'
				})
			} else {
				uni.redirectTo({
					url: '/pages/home/login'
				})
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">

</style>
